package pzl.kt.study.base

//中缀函数，对2元单元进行操作
class City(var name: String, var base: Int) {

    infix fun 到(other: City): String {
        return name + "-" + other.name + " 距离" + (other.base - base)
    }

}